import http from '../service/http.js'
export function video(params) {
    return http.get(`/api/common/video/getPopularVideo`, params)
}
export function login(params) {
    return http.post(`/api/common/user/loginByPassword`, params)
}
export function enroll(params) {
    return http.post(`/api/common/user/register`, params)
}
export function getCode(url, params) {
    return http.get(url, params)
}
export function last_password_code(url, params) {
    return http.get(url, params)
}
export function set_password(params) {
    return http.post('/api/common/user/retrievePassword', params)
}
export function like_video(url, params) {
    return http.get(url, params)
}
export function get_comments(url, params) {
    return http.get(url, params)
}
export function comments_like(url, params) {
    return http.get(url, params)
}
export function post_comments(url, params) {
    return http.post(url, params)
}
export function search_video(url, params) {
    return http.post(url, params)
}
export function search_user(url, params) {
    return http.post(url, params)
}
export function user_follow(url, params) {
    return http.get(url, params)
}
export function follow_video(url, params) {
    return http.get(url, params)
}
export function get_people(url, params) {
    return http.get(url, params)
}
export function get_fan(url, params) {
    return http.get(url, params)
}
export function UploadVideo(params) {
    return http.post(`user/uploadFile`, params)
}
export function UploadCover(params) {
    return http.post(`user/uploadCover`, params)
}
export function PublishVideo(params) {
    return http.post(`user/${params.userId}/publishVideo`, params)
}
export function get_myzuopin(url, params) {
    return http.get(url, params)
}
export function get_xihuan(url, params) {
    return http.get(url, params)
}